Exposing Behavioral Differences in Cross-Language API Mapping Relations

نویسندگان

  • Hao Zhong
  • Suresh Thummalapenta
  • Tao Xie
چکیده

Due to various considerations, software vendors often translate their applications from one programming language to another, either manually or with the support of translation tools. Both these scenarios require translation of many call sites of API elements (i.e., classes, methods, and fields of API libraries). API mapping relations, either acquired by experienced programmers or already incorporated in translation tools, are much valuable in the translation process, since they describe mapping relations between source API elements and their equivalent target API elements. However, in an API mapping relation, a source API element and its target API elements may have behavioral differences, and such differences could lead to defects in the translated code. So far, to the best of our knowledge, there exists no previous study for exposing or understanding such differences. In this paper, we make the first attempt to expose and analyze behavioral differences in cross-language API mapping relations. From our result, we summarize eight findings and their implications that can improve effectiveness of translation tools, and also assist programmers in understanding the differences between mapped API elements of different languages during the translation process. Some exposed behavioral differences can indicate defects in translation tools, and four such new defects were confirmed by the developers of those tools.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Presurgical Language Mapping in Patients With Intractable Epilepsy: A Review Study

Introduction: about 20% to 30% of patients with epilepsy are diagnosed with drug-resistant epilepsy and one third of these are candidates for epilepsy surgery. Surgical resection of the epileptogenic tissue is a well-established method for treating patients with intractable focal epilepsy. Determining language laterality and locality is an important part of a comprehensive epilepsy program befo...

متن کامل

Hierarchical Learning of Cross-Language Mappings through Distributed Vector Representations for Code

Translating a program written in one programming language to another can be useful for software development tasks that need functionality implementations in different languages. Although past studies have considered this problem, they may be either specific to the language grammars, or specific to certain kinds of code elements (e.g., tokens, phrases, API uses). This paper proposes a new approa...

متن کامل

Model-driven Generation of APIs for OWL-based Ontologies

Existing tools for generating application programming interfaces (APIs) for ontologies lack sophisticated support for mapping the logics-based concepts of the ontology to an appropriate object-oriented implementation of the API. Such a mapping has to overcome the fundamental differences between the semantics described in the ontology and the pragmatics, i.e., structure, functionalities, and beh...

متن کامل

The Profile of Functional Emotional Development of Children with Autism Spectrum Disorders from the Perspective of Developmental, Individual Differences(DIR), Relationship-based Approach

Introduction: The dominant approach in the etiology and treatment of autism spectrum disorder (ASD) is a behavioral approach. Proponents of the behavioral model believe that children with autism in access to capabilities in achieving love, empathy, language and creative thinking, have significant fundamental defects.  Instead model-based development of individual differences relationship offers...

متن کامل

Deconstructing the Model Minority Myth: Exploring Health Risk Behaviors of American Asian and Pacific Islander Young Adults

The model minority stereotype describes Asian and Pacific Islanders (API) as the epitome of assimilation into U.S. culture using hard work, intelligence, high educational attainment, and economic success to overcome the challenges of discrimination and recent immigration. Adopted model minority pressures assume a life of their own, with origins in childhood that are amplified during adolescence...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013